<?php
/**
 * Created by PhpStorm.
 * User: zyark
 * Date: 2017/5/27
 * Time: 14:21
 */

namespace Home\Controller;


use Home\Logic\GoodsCategoryLogic;
use Think\Controller;

class CategoryController extends Controller
{
    public function index(){
        //顶级分类
        $categoryLogic = new GoodsCategoryLogic();
        $topCategoryList = $categoryLogic->getTopCategoryList();
        $this->assign('topCategoryList',$topCategoryList);
        $this->assign('page_str','category');
        $this->display();
    }
}